<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center shareApp_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub shareApp_fd0_0'>
					<view class='flex flex-wrap align-center shareApp_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  shareApp_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='shareApp_fd0_0_c1_c0'>分享APP</text>
					</view>
					<view class='flex flex-wrap align-center justify-end shareApp_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-center benben-flex-layout shareApp_flex_1">
				<image class='shareApp_fd1_0' mode="aspectFit" :src='shareImg'></image>
				<button class='shareApp_fd1_1' @tap.stop="popupShow1695862435267=true">一键分享</button>
				<button class='shareApp_fd1_2' @tap.stap="clickSave">保存图片到相册</button>
			</view>

			<!---flex布局flex布局结束-->
			<benben-popup v-model="popupShow1695862435267" :mask="true" :mask-close-able="true" mode='bottom'>

				<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout shareApp_flex_2">
					<view class='flex flex-direction flex-wrap align-stretch shareApp_fd2_0'>
						<view class='flex flex-wrap align-center justify-between shareApp_fd2_0_c0'>
							<view class='flex flex-wrap align-center shareApp_fd2_0_c0_c0'>
							</view>
							<view class='flex align-center justify-center shareApp_fd2_0_c0_c1'>
								<image class='shareApp_fd2_0_c0_c1_c0' mode="aspectFit" :src='STATIC_URL+"114.png"'>
								</image>
								<text class='shareApp_fd2_0_c0_c1_c1'>分享到</text>
								<image class='shareApp_fd2_0_c0_c1_c0' mode="aspectFit" :src='STATIC_URL+"115.png"'>
								</image>
							</view>
							<view class='flex flex-wrap align-center'>
								<image class='shareApp_fd2_0_c0_c2_c0' mode="aspectFit" :src='STATIC_URL+"71.png"'
									@tap="popupShow1695862435267=false"></image>
							</view>
						</view>
						<view class='flex flex-wrap align-center justify-center shareApp_fd2_0_c1'>
							<view class='flex flex-direction flex-wrap align-center shareApp_fd2_0_c1_c0'>
								<image class='shareApp_fd2_0_c1_c0_c0' mode="aspectFit" :src='STATIC_URL+"167.png"'>
								</image>
								<text class='shareApp_fd2_0_c1_c0_c1'>微信好友</text>
							</view>
							<view class='flex flex-direction flex-wrap align-center'>
								<image class='shareApp_fd2_0_c1_c0_c0' mode="aspectFit" :src='STATIC_URL+"168.png"'>
								</image>
								<text class='shareApp_fd2_0_c1_c0_c1'>朋友圈</text>
							</view>
						</view>
					</view>
				</view>
			</benben-popup>
		</view>
	</view>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				"popupShow1695862435267": false,
				shareImg: 'https://www.pgyer.com/app/qrcode/kZskP2',
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {

		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			clickSave() {
				uni.saveImageToPhotosAlbum({
					filePath: this.shareImg, // 图片的临时文件路径
					success: function() {
						uni.showToast({
							title: '保存成功',
							icon: 'success'
						});
					},
					fail: function(err) {
						uni.showToast({
							title: '保存失败',
							icon: 'none'
						});
						console.error('保存失败:', err);
					}
				});
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: url(/static/images/112.png) no-repeat;
		background-size: 100% 100%;
	}

	.shareApp_flex_0 {
		background: url(/static/images/112.png) no-repeat;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.shareApp_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #FFFFFF;
	}

	.shareApp_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: var(--benbenFontColor3);
	}

	.shareApp_fd0_0_c0 {
		width: 120rpx;
	}

	.shareApp_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.shareApp_flex_1 {
		padding: 239rpx 0rpx 0rpx 0rpx;
	}

	.shareApp_fd1_2 {
		border: 1px solid #FC5F80;
		background: rgba(252, 95, 128, 0.2);
		border-radius: 100rpx 100rpx 100rpx 100rpx;
		width: 638rpx;
		line-height: 88rpx;
		font-size: 32rpx;
		color: #fff;
		height: 88rpx;
		font-weight: 500;
	}

	.shareApp_fd1_1 {
		background: #FC5F80;
		border-radius: 100rpx 100rpx 100rpx 100rpx;
		width: 638rpx;
		line-height: 88rpx;
		font-size: 32rpx;
		color: #fff;
		height: 88rpx;
		font-weight: 500;
		margin: 0rpx 0rpx 24rpx 0rpx;
	}

	.shareApp_fd1_0 {
		width: 386rpx;
		height: 386rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		margin: 0rpx 0rpx 301rpx 0rpx;
	}

	.shareApp_flex_2 {
		border-radius: 40rpx 40rpx 0rpx 0rpx;
	}

	.shareApp_fd2_0_c1_c0_c1 {
		font-size: 24rpx;
		font-weight: 400;
		color: #333;
	}

	.shareApp_fd2_0_c1_c0_c0 {
		width: 80rpx;
		height: 80rpx;
		border-radius: 40rpx 40rpx 40rpx 40rpx;
		margin: 0rpx 0rpx 16rpx 0rpx;
	}

	.shareApp_fd2_0_c1_c0 {
		margin: 0rpx 168rpx 0rpx 0rpx;
	}

	.shareApp_fd2_0_c1 {
		border-bottom: 1px solid #eee;
		padding: 0rpx 0rpx 40rpx 0rpx;
		margin: 0rpx 46rpx 0rpx 46rpx;
	}

	.shareApp_fd2_0_c0_c2_c0 {
		width: 40rpx;
		height: 40rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.shareApp_fd2_0_c0_c1_c1 {
		font-size: 32rpx;
		font-weight: 500;
		color: #333333;
		margin: 0rpx 24rpx 0rpx 24rpx;
		line-height: 53rpx;
	}

	.shareApp_fd2_0_c0_c1_c0 {
		width: 32rpx;
		height: 10rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.shareApp_fd2_0_c0_c1 {
		padding: 32rpx 0rpx 48rpx 0rpx;
	}

	.shareApp_fd2_0_c0_c0 {
		width: 40rpx;
		height: 40rpx;
	}

	.shareApp_fd2_0_c0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.shareApp_fd2_0 {
		background: #fff;
		padding: 0rpx 0rpx 0rpx 0rpx;
		background-size: 100% auto !important;
		border-radius: 40rpx 40rpx 0rpx 0rpx;
	}
</style>